//
//  YBDevice.h
//  YBWifiAuthSDK
//
//  Created by yiban on 16/1/21.
//  Copyright © 2016年 yiban. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import <AVFoundation/AVFoundation.h>

#define IOS7_OR_LATER	 ( [[[UIDevice currentDevice] systemVersion] compare:@"7.0"] != NSOrderedAscending )

@interface YBDevice : NSObject
//是否越狱
+(BOOL)isJailBroken;

//UUID替代方案
+(NSString *)UUID;
//替代2
+ (NSString *)IMEI;

//平台类型，固定为iPhone
+(NSString *)platform;

//iPhone机型
+(NSString *)deviceModel;
//app 版本
+(NSString*)appVersion;
//os 版本
+(float)sysVersion;

//OS类型
+(NSString *)mPlatform;

//运营商名称
+(NSString *)carrierName;

//是否连接网络
+(BOOL)hasInternetConnection;

//网络连接方式
+(NSString *)networkType;

//获取可用存储空间
+(NSString *)freeDiskSpace;

// 获取当前设备可用内存(单位：MB）
+ (double)availableMemory;

//判断屏幕1，iphone5；0，iphone4，4s，touch
+ (NSInteger)boundSizeType;

+(UIUserInterfaceIdiom)getCurUserInterfaceIdiom;
+(BOOL)isMutitaskingSupported;
+(void)openTorch:(AVCaptureTorchMode)AVCaptureTorchMode;
//
+ (NSString *)getSigTime ;
//uuid
+ (NSString *)getUUIDString;
//bundle 图片路径
+(NSString *)bundleImagePath:(NSString*)name type:(NSString*)type;
//十六进制转RGB
+ (UIColor *)colorWithHex:(NSString *)hexString;
//字体
+ (UIFont *)YBFoutStyle:(CGFloat)fontSize;
@end
